<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>支付</title>
    <script type="text/javascript" src="jquery-3.5.1.min.js"></script>
</head>
<body>
<h1>订单号：<span th:text="${seckillOrderId}"></span><a href="javascript:pay()">支付</a></h1>
<a href="/index?userId=11">首页</a>
<a href="javascript:orderList()">订单列表</a>
</body>
</html>

<script type="text/javascript" th:inline="javascript">
    function pay() {
        window.location.href = "/pay?seckillOrderId=[(${seckillOrderId})]";
    }

    function orderList() {
        window.location.href = "/seckill/order/now/11";
    }
</script>